Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS-55.00 Regenerated Schema #3209

Merged
merged 9 commits into from
May 31, 2023
Merged

IS-55.00 Regenerated Schema #3209

merged 9 commits into from
May 31, 2023

Conversation

dfilteau
Copy link
Contributor

Regenerated to address spurious errors.

PSP_PIMS S55.00 Sprint 55 2023-May-26

  • Added tables:
  • PIMS_ACQUISITION_OWNER_REP
  • PIMS_ACQUISITION_OWNER_REP_HIST
  • PIMS_INTEREST_HOLDER
  • PIMS_INTEREST_HOLDER_HIST
  • PIMS_INTEREST_HOLDER_INTEREST_TYPE
  • PIMS_INTHLDR_PROP_INTEREST
  • PIMS_INTHLDR_PROP_INTEREST_HIST
  • Altered tables:
  • PIMS_ACQ_CHKLST_ITEM_TYPE
  • PIMS_ACQ_CHKLST_SECTION_TYPE
  • PIMS_ACQ_PAYEE_CHEQUE
  • PIMS_ACQ_PAYEE_CHEQUE_HIST
  • PIMS_ACQUISITION_PAYEE
  • PIMS_ACQUISITION_PAYEE_HIST
  • Added seed scripts:
  • 130_DML_PIMS_INTEREST_HOLDER_INTEREST_TYPE.sql
  • Altered seed scripts:
  • 120_DML_PIMS_ACQ_CHKLST_SECTION_TYPE.sql
  • 121_DML_PIMS_ACQ_CHKLST_ITEM_TYPE.sql
  • Requires additional metadata to meet standards

dfilteau and others added 8 commits May 26, 2023 15:47
PSP_PIMS S55.00 Sprint 55 2023-May-26
- Added tables:
  - PIMS_ACQUISITION_OWNER_REP
  - PIMS_ACQUISITION_OWNER_REP_HIST
  - PIMS_INTEREST_HOLDER
  - PIMS_INTEREST_HOLDER_HIST
  - PIMS_INTEREST_HOLDER_INTEREST_TYPE
  - PIMS_INTHLDR_PROP_INTEREST
  - PIMS_INTHLDR_PROP_INTEREST_HIST
- Altered tables:
  - PIMS_ACQ_CHKLST_ITEM_TYPE
  - PIMS_ACQ_CHKLST_SECTION_TYPE
  - PIMS_ACQ_PAYEE_CHEQUE
  - PIMS_ACQ_PAYEE_CHEQUE_HIST
  - PIMS_ACQUISITION_PAYEE
  - PIMS_ACQUISITION_PAYEE_HIST
- Added seed scripts:
  - 130_DML_PIMS_INTEREST_HOLDER_INTEREST_TYPE.sql
- Altered seed scripts:
  - 120_DML_PIMS_ACQ_CHKLST_SECTION_TYPE.sql
  - 121_DML_PIMS_ACQ_CHKLST_ITEM_TYPE.sql
- Requires additional metadata to meet standards
Added the conditional creation of spatial indices in PIMS_PROPERTY
- 005_PSP_PIMS_PROPERTY_SPATIAL_IDX.sql
003_Delete_DynamicConstraint.sql
Added foreign key between Acquisition File and Interest Holder
Added IS_PAYMENT_IN_TRUST to PIMS_ACQ_PAYEE_CHEQUE
Regenerated to address spurious errors.

PSP_PIMS S55.00 Sprint 55 2023-May-26
- Added tables:
  - PIMS_ACQUISITION_OWNER_REP
  - PIMS_ACQUISITION_OWNER_REP_HIST
  - PIMS_INTEREST_HOLDER
  - PIMS_INTEREST_HOLDER_HIST
  - PIMS_INTEREST_HOLDER_INTEREST_TYPE
  - PIMS_INTHLDR_PROP_INTEREST
  - PIMS_INTHLDR_PROP_INTEREST_HIST
- Altered tables:
  - PIMS_ACQ_CHKLST_ITEM_TYPE
  - PIMS_ACQ_CHKLST_SECTION_TYPE
  - PIMS_ACQ_PAYEE_CHEQUE
  - PIMS_ACQ_PAYEE_CHEQUE_HIST
  - PIMS_ACQUISITION_PAYEE
  - PIMS_ACQUISITION_PAYEE_HIST
- Added seed scripts:
  - 130_DML_PIMS_INTEREST_HOLDER_INTEREST_TYPE.sql
- Altered seed scripts:
  - 120_DML_PIMS_ACQ_CHKLST_SECTION_TYPE.sql
  - 121_DML_PIMS_ACQ_CHKLST_ITEM_TYPE.sql
- Requires additional metadata to meet standards
@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Collaborator

@devinleighsmith devinleighsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dfilteau this does not fix the problems with the IS55 alter up/build.

ie: this is still present:
[PIMS_INTHLDR_PROP_INTEREST_ID] varchar(40) NOT NULL CONSTRAINT [IHPRIN_PIMS_INTHLDR_PROP_INTEREST_ID_DEF] DEFAULT ('NEXT VALUE FOR [PIMS_INTHLDR_PROP_INTEREST_ID_SEQ]'),

Comment on lines 67 to 68
PRINT N'Create sequence dbo.PIMS_INTHLDR_PROP_INTEREST_ID_SEQ'
GO
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem is with the table definition:

CREATE TABLE [dbo].[PIMS_INTHLDR_PROP_INTEREST]  ( 
	[PIMS_INTHLDR_PROP_INTEREST_ID]     	varchar(40) NOT NULL CONSTRAINT [IHPRIN_PIMS_INTHLDR_PROP_INTEREST_ID_DEF]  DEFAULT ('NEXT VALUE FOR [PIMS_INTHLDR_PROP_INTEREST_ID_SEQ]'),
	```

VARCHAR(40) changed to BIGINT
@dfilteau
Copy link
Contributor Author

@dfilteau this does not fix the problems with the IS55 alter up/build.

ie: this is still present: [PIMS_INTHLDR_PROP_INTEREST_ID] varchar(40) NOT NULL CONSTRAINT [IHPRIN_PIMS_INTHLDR_PROP_INTEREST_ID_DEF] DEFAULT ('NEXT VALUE FOR [PIMS_INTHLDR_PROP_INTEREST_ID_SEQ]'),

@devinleighsmith, @FuriousLlama, fixed now.

@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

@FuriousLlama FuriousLlama merged commit fe2b897 into bcgov:dev May 31, 2023
devinleighsmith pushed a commit to devinleighsmith/PSP that referenced this pull request Jun 1, 2023
* IS-55.00 Database Schema

PSP_PIMS S55.00 Sprint 55 2023-May-26
- Added tables:
  - PIMS_ACQUISITION_OWNER_REP
  - PIMS_ACQUISITION_OWNER_REP_HIST
  - PIMS_INTEREST_HOLDER
  - PIMS_INTEREST_HOLDER_HIST
  - PIMS_INTEREST_HOLDER_INTEREST_TYPE
  - PIMS_INTHLDR_PROP_INTEREST
  - PIMS_INTHLDR_PROP_INTEREST_HIST
- Altered tables:
  - PIMS_ACQ_CHKLST_ITEM_TYPE
  - PIMS_ACQ_CHKLST_SECTION_TYPE
  - PIMS_ACQ_PAYEE_CHEQUE
  - PIMS_ACQ_PAYEE_CHEQUE_HIST
  - PIMS_ACQUISITION_PAYEE
  - PIMS_ACQUISITION_PAYEE_HIST
- Added seed scripts:
  - 130_DML_PIMS_INTEREST_HOLDER_INTEREST_TYPE.sql
- Altered seed scripts:
  - 120_DML_PIMS_ACQ_CHKLST_SECTION_TYPE.sql
  - 121_DML_PIMS_ACQ_CHKLST_ITEM_TYPE.sql
- Requires additional metadata to meet standards

* Added Spatial Indicies

Added the conditional creation of spatial indices in PIMS_PROPERTY
- 005_PSP_PIMS_PROPERTY_SPATIAL_IDX.sql

* Added Deletion of Dynamic Constraints to Alter Up

003_Delete_DynamicConstraint.sql

* Added Foreign Key

Added foreign key between Acquisition File and Interest Holder

* Dropped FK Script in Alter Down

* Added Payment in Trust

Added IS_PAYMENT_IN_TRUST to PIMS_ACQ_PAYEE_CHEQUE

* IS-55.00 Regenerated Schema

Regenerated to address spurious errors.

PSP_PIMS S55.00 Sprint 55 2023-May-26
- Added tables:
  - PIMS_ACQUISITION_OWNER_REP
  - PIMS_ACQUISITION_OWNER_REP_HIST
  - PIMS_INTEREST_HOLDER
  - PIMS_INTEREST_HOLDER_HIST
  - PIMS_INTEREST_HOLDER_INTEREST_TYPE
  - PIMS_INTHLDR_PROP_INTEREST
  - PIMS_INTHLDR_PROP_INTEREST_HIST
- Altered tables:
  - PIMS_ACQ_CHKLST_ITEM_TYPE
  - PIMS_ACQ_CHKLST_SECTION_TYPE
  - PIMS_ACQ_PAYEE_CHEQUE
  - PIMS_ACQ_PAYEE_CHEQUE_HIST
  - PIMS_ACQUISITION_PAYEE
  - PIMS_ACQUISITION_PAYEE_HIST
- Added seed scripts:
  - 130_DML_PIMS_INTEREST_HOLDER_INTEREST_TYPE.sql
- Altered seed scripts:
  - 120_DML_PIMS_ACQ_CHKLST_SECTION_TYPE.sql
  - 121_DML_PIMS_ACQ_CHKLST_ITEM_TYPE.sql
- Requires additional metadata to meet standards

* Fixed PIMS_INTHLDR_PROP_INTEREST

VARCHAR(40) changed to BIGINT
@dfilteau dfilteau deleted the IS-55.00 branch June 1, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants